import { Column, Entity, Index } from "typeorm";
import { CommonEntity } from "~/common/entity/common.entity";

@Index(["houseTypeId", "positionId", "roomTypeId"])
@Entity({ name: 'access_dict_room' })
export class AccessDictRoom extends CommonEntity {
	@Column({ name: 'house_type_id', comment: '房型id', type: 'int' })
	houseTypeId: number;

	@Column({ name: 'position_id', comment: '朝向id', type: 'int' })
	positionId: number;

	@Column({ name: 'room_type_id', comment: '房型id', type: 'int' })
	roomTypeId: number;

	@Column({ name: 'real_secret', comment: '真诀描述', type: 'longtext' })
	realSecret: string;

	@Column({ name: 'detail', comment: '详批', type: 'longtext' })
	detail: string;
}